import axios from './http'
// import Qs from "qs";



const task={
    addTask(params){
        return axios.post(
            '/api/task/addTask/', 
            params,
            {headers: {'Content-Type': 'application/x-www-form-urlencoded'}}
        )
    },
    queryTaskInfo(params){
        return axios.get('/api/task/queryTask/', {params})
    },
    queryOriginNum(params){
        return axios.get('/api/task/countOrigin/', {params})
    },
    queryPriorityNum(params){
        return axios.get('/api/task/countPriority/', {params})
    },
    deleteTask(params){
        return axios.get('/api/task/deleteTask/', {params})
    },
    updateStatus(params){
        return axios.get('/api/task/updateStatus/', {params})
    },
    setFinish(params){
        return axios.get('/api/task/setFinish/', {params})
    },
    getGroupList(params){
        return axios.get('/api/task/getGroupList/', {params})
    },
    queryGroupInfo(params){
        return axios.get('/api/job/queryGroupInfo/', {params})
    },
    addPerson(params){
        return axios.post('/api/job/addPerson/', params, {'Content-Type': 'application/x-www-form-urlencoded'})
    },
    deletePerson(params){
        return axios.get('/api/job/deletePerson/', {params})
    },
    deleteAppConfig(params){
        return axios.delete('/api/job/getConfig/', {params})
    },
    getTaskConfig(params){
        return axios.get('/api/job/getConfig/', {params})
    },
    addTaskConfig(params){
        return axios.post('/api/job/getConfig/', params, {'Content-Type': 'application/x-www-form-urlencoded'})
    },
    countTaskNum(params){
        return axios.get('/api/task/countTask/', {params})
    },
}

export default task;